package cn.wolfcode.gitflow.web.controller;

import cn.wolfcode.gitflow.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhenfeng
 * @Date 2021/5/28
 */
@RestController
public class UserController {

    @Autowired
    private IUserService userService;

    @RequestMapping("/currentUser")
    public String currentUser(String username, String password){
        return userService.currentUser(username, password);
    }
}
